package com.simple.datax.flow.message;

import java.util.ArrayList;
import java.util.List;

import org.apache.xmlbeans.XmlObject;

/** 
 * @Title: EcFlowMessageBody.java 
 * @Package com.simple.datax.flow.model 
 * @Description: TODO(报文流程信息) 
 * @author tonney 
 * @date 2013-1-5 下午12:10:11 
 * @version V1.0 
 */
public class EcFlowMessageBody implements Cloneable{
	private int resultCode = 0;
	private String resultValue = "";
	private String messageId;
	private String userId;
	private String userPrivateKey;
	private boolean newtask = false;
	private String corpTaskId;
	private String flowId;
	private String taskId;
	private String taskControl;
	private String taskNote;
	private List<String> activityIdList;
	private String bizData = null;
	private XmlObject ecData = null;
	
	public EcFlowMessageBody clone() {
		EcFlowMessageBody obj = null;
		try {
			obj = (EcFlowMessageBody) super.clone();
			if(activityIdList!=null){
				List<String> activityIdList2 = new ArrayList<String>();
				for(String activityId:activityIdList){
					activityIdList2.add(activityId);
				}
				activityIdList = activityIdList2;
			}else{
				activityIdList = null;
			}
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return obj;
	}
	
	public XmlObject getEcData() {
		return ecData;
	}
	public void setEcData(XmlObject ecData) {
		this.ecData = ecData;
	}
	public String getBizData() {
		return bizData;
	}
	public void setBizData(String bizData) {
		this.bizData = bizData;
	}
	public int getResultCode() {
		return resultCode;
	}
	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}
	
	public String getResultValue() {
		return resultValue;
	}
	public void setResultValue(String resultValue) {
		this.resultValue = resultValue;
	}
	public String getMessageId() {
		return messageId;
	}
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserPrivateKey() {
		return userPrivateKey;
	}
	public void setUserPrivateKey(String userPrivateKey) {
		this.userPrivateKey = userPrivateKey;
	}
	public boolean isNewtask() {
		return newtask;
	}
	public void setNewtask(boolean newtask) {
		this.newtask = newtask;
	}
	public String getCorpTaskId() {
		return corpTaskId;
	}
	public void setCorpTaskId(String corpTaskId) {
		this.corpTaskId = corpTaskId;
	}
	public String getFlowId() {
		return flowId;
	}
	public void setFlowId(String flowId) {
		this.flowId = flowId;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getTaskControl() {
		return taskControl;
	}
	public void setTaskControl(String taskControl) {
		this.taskControl = taskControl;
	}
	public String getTaskNote() {
		return taskNote;
	}
	public void setTaskNote(String taskNote) {
		this.taskNote = taskNote;
	}
	public List<String> getActivityIdList() {
		if(activityIdList==null){
			activityIdList = new ArrayList<String>();
		}
		return activityIdList;
	}
	public void setActivityIdList(List<String> activityIdList) {
		this.activityIdList = activityIdList;
	}
}
